package com.hongxun.modules.csg.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hongxun.common.validator.group.AddGroup;
import com.hongxun.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;


/**
 * 到货记录
 * 
 * @author zkcn
 * @email youeremail@163.com
 * @date 2018-09-11 09:30:52
 */
public class CArrivalRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//guid
	private String guid;
	//存放地址ID
	@NotBlank(message="堆放点不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sPGuid;
	//所属项目ID
	private String pGuid;
	//项目名称
	private String pName;
	//存放地址
	@NotBlank(message="存放地址不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sPName;
	//记录人id
	private Long aRUser;
	//记录人名称
	private String aRUsername;
	//到货日期
//	@NotBlank(message="到货日期不能为空", groups = {AddGroup.class, UpdateGroup.class})
//	@JsonInclude(JsonInclude.Include.NON_NULL)
	private Date aRTime;
	//状态
	private String aRDatastate;

	private String pServeraddress;


	public String getPName() {
		return pName;
	}

	public void setPName(String pName) {
		this.pName = pName;
	}

	/**
	 * 设置：guid
	 */
	public void setGuid(String guid) {
		this.guid = guid;
	}
	/**
	 * 获取：guid
	 */
	public String getGuid() {
		return guid;
	}
	/**
	 * 设置：存放地址ID
	 */
	public void setSPGuid(String sPGuid) {
		this.sPGuid = sPGuid;
	}
	/**
	 * 获取：存放地址ID
	 */
	public String getSPGuid() {
		return sPGuid;
	}

	/**
	 * 获取：所属项目ID
	 */
	public String getPGuid() {
		return pGuid;
	}
	/**
	 * 设置：所属项目ID
	 */
	public void setPGuid(String pGuid) {
		this.pGuid = pGuid;
	}

	/**
	 * 设置：存放地址
	 */
	public void setSPName(String sPName) {
		this.sPName = sPName;
	}
	/**
	 * 获取：存放地址
	 */
	public String getSPName() {
		return sPName;
	}
	/**
	 * 设置：记录人id
	 */
	public void setARUser(Long aRUser) {
		this.aRUser = aRUser;
	}
	/**
	 * 获取：记录人id
	 */
	public Long getARUser() {
		return aRUser;
	}
	/**
	 * 设置：记录人名称
	 */
	public void setARUsername(String aRUsername) {
		this.aRUsername = aRUsername;
	}
	/**
	 * 获取：记录人名称
	 */
	public String getARUsername() {
		return aRUsername;
	}
	/**
	 * 设置：到货日期
	 */
	public void setARTime(Date aRTime) {
		this.aRTime = aRTime;
	}
	/**
	 * 获取：到货日期
	 */
	public Date getARTime() {
		return aRTime;
	}
	/**
	 * 设置：状态
	 */
	public void setARDatastate(String aRDatastate) {
		this.aRDatastate = aRDatastate;
	}
	/**
	 * 获取：状态
	 */
	public String getARDatastate() {
		return aRDatastate;
	}

	public String getPServeraddress() {
		return pServeraddress;
	}

	public void setPServeraddress(String pServeraddress) {
		this.pServeraddress = pServeraddress;
	}
}
